package com.ciaojian.bytedance.vo.bytedance;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class OrderMsgVo implements Serializable {

    /**
     * order_id : ots71817427995016092277370
     * goods : [{"img_url":"https://p9-developer-sign.bytemaimg.com/douyin-user-image-file/2a63d205cf8522d5f0a6716e3903c4a9~tplv-ke512zj2cu-jpg.jpeg?x-expires=1827649988\\u0026x-signature=wNpuiOqCtwK5t1FqKmfeL92AcS0%3D","title":"【cs】19.9新客首单优惠","sub_title":"","labels":"","date_rule":"周一至周日可用","poi_id":"","goods_id":"7181313216742492215","goods_id_type":1,"origin_price":1990,"price":1990,"quantity":1,"item_order_id_list":["ots71817427995016419957370"],"item_order_info":[{"item_order_id":"ots71817427995016419957370","price":1990}]}]
     * item_order_info_list : [{"goods_id":"7181313216742492215","goods_id_type":1,"item_order_id":"ots71817427995016419957370","price":1990}]
     * total_amount : 1990
     * discount : 0
     * cp_extra :
     * create_order_time : 1672129988928
     * open_id : 3d6a40a1-84ec-407d-969f-bbaaa5a3f531
     * phone_num : 15222222222
     * contact_name :
     * app_id : tte9689fd5765669a801
     * union_id : ef822623-1845-4441-8f73-2e4fe8b8752a
     * delivery_type : 0
     */

    private String order_id;
    private int total_amount;
    private int discount;
    private String cp_extra;
    private long create_order_time;
    private String open_id;
    private String phone_num;
    private String contact_name;
    private String app_id;
    private String union_id;
    private int delivery_type;
    private List<GoodsBean> goods;
    private List<ItemOrderInfoListBean> item_order_info_list;

    @Data
    public static class GoodsBean implements Serializable {
        /**
         * img_url : https://p9-developer-sign.bytemaimg.com/douyin-user-image-file/2a63d205cf8522d5f0a6716e3903c4a9~tplv-ke512zj2cu-jpg.jpeg?x-expires=1827649988\u0026x-signature=wNpuiOqCtwK5t1FqKmfeL92AcS0%3D
         * title : 【cs】19.9新客首单优惠
         * sub_title :
         * labels :
         * date_rule : 周一至周日可用
         * poi_id :
         * goods_id : 7181313216742492215
         * goods_id_type : 1
         * origin_price : 1990
         * price : 1990
         * quantity : 1
         * item_order_id_list : ["ots71817427995016419957370"]
         * item_order_info : [{"item_order_id":"ots71817427995016419957370","price":1990}]
         */

        private String img_url;
        private String title;
        private String sub_title;
        private String labels;
        private String date_rule;
        private String poi_id;
        private String goods_id;
        private int goods_id_type;
        private int origin_price;
        private int price;
        private int quantity;
        private List<String> item_order_id_list;
        private List<ItemOrderInfoBean> item_order_info;

        @Data
        public static class ItemOrderInfoBean implements Serializable {
            /**
             * item_order_id : ots71817427995016419957370
             * price : 1990
             */

            private String item_order_id;
            private int price;
        }
    }

    @Data
    public static class ItemOrderInfoListBean implements Serializable {
        /**
         * goods_id : 7181313216742492215
         * goods_id_type : 1
         * item_order_id : ots71817427995016419957370
         * price : 1990
         */

        private String goods_id;
        private int goods_id_type;
        private String item_order_id;
        private int price;
    }
}
